package com.wangzifan.service.impl;

import com.wangzifan.entity.User;
import com.wangzifan.mapper.UserMapper;
import com.wangzifan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }

    @Override
    public User queryUserByAccount(User user) {
        return userMapper.queryUserByAccount(user);
    }
}
